#include <sdk.h>
#include "genericselectpath.h"

const long GenericSelectPath::ID_STATICTEXT1 = wxNewId();
const long GenericSelectPath::ID_STATICTEXT2 = wxNewId();
const long GenericSelectPath::ID_TEXTCTRL1 = wxNewId();
const long GenericSelectPath::ID_BUTTON1 = wxNewId();

BEGIN_EVENT_TABLE( GenericSelectPath, wxPanel )
END_EVENT_TABLE()

GenericSelectPath::GenericSelectPath( wxWindow* parent, wxWindowID id ) {
  Create( parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T( "id" ) );
  BoxSizer1 = new wxBoxSizer( wxVERTICAL );
  lblDescr = new wxStaticText( this, ID_STATICTEXT1, _T( "Please select the location of XXX\non your computer. This is the top-level folder where\nXXX is installed." ), wxDefaultPosition, wxDefaultSize, 0, _T( "ID_STATICTEXT1" ) );
  BoxSizer1->Add( lblDescr, 0, wxALL | wxEXPAND, 8 );
  lblLabel = new wxStaticText( this, ID_STATICTEXT2, _T( "Location of XXX:" ), wxDefaultPosition, wxDefaultSize, 0, _T( "ID_STATICTEXT2" ) );
  BoxSizer1->Add( lblLabel, 0, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, 8 );
  BoxSizer2 = new wxBoxSizer( wxHORIZONTAL );
  txtFolder = new wxTextCtrl( this, ID_TEXTCTRL1, _T( "Text" ), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T( "ID_TEXTCTRL1" ) );
  BoxSizer2->Add( txtFolder, 1, wxALL | wxALIGN_TOP, 0 );
  btnBrowse = new wxButton( this, ID_BUTTON1, _T( "..." ), wxDefaultPosition, wxSize( 22, 22 ), 0, wxDefaultValidator, _T( "ID_BUTTON1" ) );
  BoxSizer2->Add( btnBrowse, 0, wxALL | wxALIGN_TOP, 0 );
  BoxSizer1->Add( BoxSizer2, 0, wxBOTTOM | wxLEFT | wxRIGHT | wxEXPAND, 8 );
  SetSizer( BoxSizer1 );
  BoxSizer1->Fit( this );
  BoxSizer1->SetSizeHints( this );
  txtFolder->SetName( _T( "txtFolder" ) );
}

GenericSelectPath::~GenericSelectPath() {
}
